package functional;

import java.util.function.IntSupplier;

/**
 * @Author ZhangGJ
 * @Date 2020/12/28 10:51
 */
public class Closure1 {

    int i;

    IntSupplier makeFun(int x) {
        return () -> x + i++;
    }
}
